package org.eenie.kdassistant.utils.xz_encode;

import java.io.UnsupportedEncodingException;

/**
 * Created by Eenie on 2017/8/11.
 * Email: eeniework@gmail.com
 * Des:
 */

public class c {
    private static IllegalStateException a(String var0, UnsupportedEncodingException var1) {
        return new IllegalStateException(var0 + ": " + var1);
    }

    public static String a(byte[] var0) {
        return a(var0, "UTF-8");
    }

    public static String a(byte[] var0, String var1) {
        String var3;
        if(var0 == null) {
            var3 = null;
        } else {
            try {
                var3 = new String(var0, var1);
            } catch (UnsupportedEncodingException var2) {
                throw a(var1, var2);
            }
        }

        return var3;
    }
}
